import request from "@/utils/request";

// 获取帖子数据
export const getPostDate=(postId,postUid)=>{
    return request.get(`/post/${postId}/${postUid}`)
}

//获取帖子下面的评论
export const getAllReply=(postId)=>{
    return request.get(`/comment/post/${postId}`)
}
//发布评论
export const PulishReplay=(postId,userId,commentContent)=>{
    return request.post(`/comment?postId=${postId}&userId=${userId}`,{
        // params:{
        //     postId:postId,
        //     userId:userId
        // },
            commentContent:commentContent     
    })
}
